package com.green.card.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

/**
 * Created by admin on 2018/1/24.
 */

public abstract class BaseActivity extends FragmentActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
        setListener();
        initData();
        initSdk();
    }

    /**
     * 初始化view
     */
    public abstract void initView();

    /**
     * 设置控件监听
     */
    protected abstract void setListener();

    /**
     * 初始化第三方sdk
     */
    public void initSdk(){

    }

    /**
     * 初始化数据
     */
    public abstract void initData();
}
